import request from '@/utils/request'

// 查询考试完成记录列表
export function listPaperRecord(query) {
  return request({
    url: '/exam/paperRecord/list',
    method: 'get',
    params: query
  })
}

// 查询考试完成记录详细
export function getPaperRecord(recordId) {
  return request({
    url: '/exam/paperRecord/' + recordId,
    method: 'get'
  })
}

// 新增考试完成记录
export function addPaperRecord(data) {
  return request({
    url: '/exam/paperRecord',
    method: 'post',
    data: data
  })
}

// 修改考试完成记录
export function updatePaperRecord(data) {
  return request({
    url: '/exam/paperRecord',
    method: 'put',
    data: data
  })
}

// 删除考试完成记录
export function delPaperRecord(recordId) {
  return request({
    url: '/exam/paperRecord/' + recordId,
    method: 'delete'
  })
}

// 导出考试完成记录
export function exportPaperRecord(query) {
  return request({
    url: '/exam/paperRecord/export',
    method: 'get',
    params: query
  })
}